package entity;

public class Person {
        protected String id;
        protected String name;
        protected String gender;

        // 父类构造方法
        public Person(String id, String name, String gender) {
            this.id = id;
            this.name = name;
            this.gender = gender;
        }

        // 公共方法
        public void displayInfo() {
            System.out.println("编号: " + id + ", 姓名: " + name + ", 性别: " + gender);
        }

        // Getter方法
        public String getId() { return id; }
        public String getName() { return name; }
        public String getGender() { return gender; }
    }

